<!DOCTYPE html>
<html>
        <head lang="en">
                <include file="Public/header" />
                <style>
                        body,#mapContainer{
            margin:0;
            height:100%;
            width:100%;
            font-size:12px;
        }
    </style>
                <link rel="stylesheet" href="http://cache.amap.com/lbs/static/main.css?v=1.0?v=1.0" />
                <script src="http://cache.amap.com/lbs/static/es5.min.js"></script>
                <script type="text/javascript" src="http://webapi.amap.com/maps?v=1.3&key=532a2a60036cb471be502d8425aa24fa&plugin=AMap.ToolBar"></script>
                <script>
                        function init() {
                                map = new AMap.Map("mapContainer", {
                                        zoom: 17,
                                        center:[105.886486,29.39091]
                                });
                                marker = new AMap.Marker({
                                        map: map,
                                        position: ["105.886486","29.39091"]
                                })
                                marker.setLabel({

                                        content: "点击打开高德地图导航"
                                });
                                marker.on('click', function(e) {
                                        marker.markOnAMAP({
                                                position: marker.getPosition()
                                        })
                                })
                                map.addControl(new AMap.ToolBar());
                                if (AMap.UA.mobile) {
                                        document.getElementById('button_group').style.display = 'none';
                                }
                        }
                </script>
        </head>
        <body onload="init()">
                <div id="mapContainer"></div>
                <div class="button-group" id='button_group' style='top:15px;bottom:inherit'>
                </div>
        </body>
</html>
